package com.yxh.base;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 32988 on 2018/6/6.
 */
public abstract class BaseServiceClass<T,Obj extends Serializable>{
    public int save(T record){
        return 0;
    }

    public int update(T record){
        return 0;
    }

    public int delete(Obj id){
        return 0;
    }

    public void batchDelete(List<T> records){

    }

    public T get(Obj id){
        return null;
    }

    public T get(T record){
        return null;
    }

    /**
     * ��ѯ�����б������Ҫ��ҳ�������÷�ҳ�����磺entity.setPage(new Page<T>());
     * @param record
     * @return
     */
    public List<T> getList(T record){
        return null;
    }

    /**
     * ��ѯ���������б�
     * @param record
     * @return
     */
    public List<T> getAllList(T record){
        return null;
    }

    /**
     * ��ҳ��ѯ�����б�
     * @param record
     * @return
     */
    public List<T> getListPage(PageEntity<T> record){
        return null;
    }

}
